			
			<div class="container">  
				<div id="roles">
				<div class="page-header" style="position:relative;">
					<h3>Privileges</h3>
				</div>
                    <!--<div class="row-fluid">
						<div class="span10">
							<ul class="horizontal">
                            <?php if($this->tank_auth->is_url('customer/add')){ ?>
                            	<li><a href="<?php echo site_url('customer/add');?>" class="btn">Add Privileges</a></li>
                            <?php } ?>
                            </ul>
						</div>
					</div>-->
					<?php
					if(empty($hasil)){
						echo "<table class='table table-striped'>
							<thead>
								<tr>
        							<td>Customers username</td>
									<td>Title</td>
            						<td>First Name</td>
           							<td>Last Name</td>
									<td>Email</td>
									<td>Status</td>
                                    <td>Banned</td>
        						</tr>
							</thead>
						</table>";
					}else{
					?>
					<table class="table table-striped">
							<thead>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" class="chk_boxes" id="checkbox[]" type="checkbox" value="$row -> id_priv" /></td>
                                   	<td>Customers username</td>
									<td>Title</td>
            						<td>First Name</td>
           							<td>Last Name</td>
									<td>Email</td>
                                    <td>Status</td>
                                    <td>Banned</td>
                                    <!--<?php if($this->tank_auth->is_url('customer/updatedata') || $this->tank_auth->is_url('customer/deletedata')){ ?>-->
            							<td>Action</td>
                                    <!--<?php } ?>-->
								</tr>
							</thead>
							<?php foreach ($hasil as $row): ?>
								<tr>
                                    <td width="1" style="text-align: center;"><input name="checkbox[]" class="chk_boxes1" id="checkbox[]" type="checkbox" value="$row -> id_priv" /></td>
                                    <td><?php echo $row -> username ?></td>
                                    <td><?php echo $row -> title ?></td>
                                    <td><?php echo $row -> first_name ?></td>
                                    <td><?php echo $row -> last_name ?></td>
                                    <td><?php echo $row -> email ?></td>
                                     <td><?php if ($row->activated == 1) { ?>
                                          Active
                                          <?php } else { ?>
                                          Non-Active
                                          <?php } ?></td>
                                    <td><?php if ($row->banned == 1) { ?>
                                          Yes
                                          <?php } else { ?>
                                          No
                                          <?php } ?></td>
                                    <?php if($this->tank_auth->is_url('customer/updatedata')){ ?>
                                        <td><?php echo anchor('customer/updatedata/'.$row->id, '<i class="icon-edit"></i>', 'title = "Edit"') ;?>
                                    <?php } ?>
                                    <!--<?php if($this->tank_auth->is_url('customer/deletedata')){ ?>-->
                                        <?php echo anchor('customer/deletedata/'.$row->id, '<i class="icon-trash"></i>', 'title = "Delete" onclick="return confirmDelete();"'); ?></td>
                                    <!--<?php } ?>-->         
								</tr>
							 <?php endforeach; ?> 
					</table>
					<?php
					}
					?>
                    <center>
                      <?php echo $pagination; ?>
                    </center>
				</div>
			</div>
        
        <script type="text/javascript" language="javascript">
			$(function() {
  				$('.chk_boxes').click(function(){
					var chk = $(this).attr('checked')?true:false;
					$('.chk_boxes1').attr('checked',chk);
				});
			});
		</script> 
	
		

